package com.mvc.dao.impl;

import com.mvc.dao.StudentDao;
import com.mvc.entity.Student;

/**
 * @author wzm
 * @create 2023-02-27 15:12
 */
//业务BeanDao的功能实现类
public class StudentDaoImpl extends BaseDao implements StudentDao {
    @Override
    public int insertStudent(Student student) {
        //书写完整的新增的功能
        String sql = "insert into student values(?,?,?,?,?,?)";
        return update(sql, null,student.getStuName(),student.getStuSex(),student.getAge(),student.getAddress(),student.getStatus());
    }

}
